Component({
  data:{
    option1: [
      { text: '价格由高到低', value: "desc" },
      { text: '价格由低到高', value: "asc" }
    ],
    option2: [
      { text: '默认排序', value: 'a' },
      { text: '好评排序', value: 'b' },
      { text: '销量排序', value: 'c' },
    ],
    value1: "asc",
    value2: 'a',
  },
  methods:{
    cateChange(e){
      console.log("这是啥",e.detail)
      //调用popup中的发起请求方法
      this.triggerEvent("fn",e.detail)
    },
    priceChange(e){
      this.triggerEvent("fn2",e.detail)
      console.log("xxxxx",e.detail)
    }
},
properties:{//父传子
  goodsList:{
    type:Array,
    value:[]
  },
  filterCategory:{
    type:Array,
    value:[]
  },
  filterCategoryID:{
    type:Number,
    value:0
  }
}
})